package com.grouppurchase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("orders")
public class Order extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    private String orderNo;

    private Long userId;

    private Long productId;

    private Long groupId;

    private String groupType;

    private Long price;

    private Integer quantity;

    private Long totalAmount;

    private Long payAmount;

    private Long freightAmount;

    private Long discountAmount;

    private Long couponId;

    private String status;

    private String payStatus;

    private String deliveryStatus;

    private String receiveName;

    private String receivePhone;

    private String receiveAddress;

    private String remark;

    private LocalDateTime paidAt;

    private LocalDateTime deliveredAt;

    private LocalDateTime receivedAt;

    private LocalDateTime completedAt;
}
